package com.herui.ota.enums;

import com.mlnx.common.enums.BaseCodeEnum;
import io.swagger.annotations.ApiModel;

/**
 * Created by amanda.shan on 2020/12/29.
 */
@ApiModel("操作类型")
public enum OpsTypeEnum implements BaseCodeEnum<Integer> {

    CREATE_OTA(0, "创建产品"), UPDATE_OTA(1, "更新产品"),
    CREATE_DEVICE(2, "创建设备"), UPDATE_DEVICE(3, "更新设备"),
    UPGRADE_DEVICE(4, "设备升级"),  DELETE_DEVICE(5, "设备删除"),
    DELETE_OTA(6, "产品删除"),
    CREATE_OTA_SOFT(7, "创建固件"), UPDATE_OTA_SOFT(8, "更新固件"),
    DELETE_OTA_SOFT(9, "删除固件"),

    CREATE_OTA_EVENT(10, "创建事件"),
    ;

    private Integer code;

    private String message;

    OpsTypeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getValue() {
        return code;
    }


}